/* A lexical scanner generated by flex */

/* Scanner skeleton version:
 * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.81 95/03/20 14:02:24 vern Exp $
 */

#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>


/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif


#ifdef __cplusplus

#include <stdlib.h>
#include <unistd.h>

/* Use prototypes in function declarations. */
#define YY_USE_PROTOS

/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST

#else	/* ! __cplusplus */

#if __STDC__

#define YY_USE_PROTOS
#define YY_USE_CONST

#endif	/* __STDC__ */
#endif	/* ! __cplusplus */

#ifdef __TURBOC__
 #pragma warn -rch
 #pragma warn -use
#include <io.h>
#include <stdlib.h>
#define YY_USE_CONST
#define YY_USE_PROTOS
#endif

#ifndef YY_USE_CONST
#ifndef const
#define const
#endif
#endif


#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif

/* Returned upon end-of-file. */
#define YY_NULL 0

/* Promotes a possibly negative, possibly signed char to an unsigned
 * integer for use as an array index.  If the signed char is negative,
 * we want to instead treat it as an 8-bit unsigned char, hence the
 * double cast.
 */
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)

/* Enter a start condition.  This macro really ought to take a parameter,
 * but we do it the disgusting crufty way forced on us by the ()-less
 * definition of BEGIN.
 */
#define BEGIN yy_start = 1 + 2 *

/* Translate the current start state into a value that can be later handed
 * to BEGIN to return to the state.  The YYSTATE alias is for lex
 * compatibility.
 */
#define YY_START ((yy_start - 1) / 2)
#define YYSTATE YY_START

/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)

/* Special action meaning "start processing a new file". */
#define YY_NEW_FILE yyrestart( yyin )

#define YY_END_OF_BUFFER_CHAR 0

/* Size of default input buffer. */
#define YY_BUF_SIZE 16384

typedef struct yy_buffer_state *YY_BUFFER_STATE;

extern int yyleng;
extern FILE *yyin, *yyout;

#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2

/* The funky do-while in the following #define is used to turn the definition
 * int a single C statement (which needs a semi-colon terminator).  This
 * avoids problems with code like:
 *
 * 	if ( condition_holds )
 *		yyless( 5 );
 *	else
 *		do_something_else();
 *
 * Prior to using the do-while the compiler would get upset at the
 * "else" because it interpreted the "if" statement as being all
 * done when it reached the ';' after the yyless() call.
 */

/* Return all but the first 'n' matched characters back to the input stream. */

#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		*yy_cp = yy_hold_char; \
		yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
		YY_DO_BEFORE_ACTION; /* set up yytext again */ \
		} \
	while ( 0 )

#define unput(c) yyunput( c, yytext_ptr )

/* The following is because we cannot portably get our hands on size_t
 * (without autoconf's help, which isn't available because we want
 * flex-generated scanners to compile on their own).
 */
typedef unsigned int yy_size_t;


struct yy_buffer_state
	{
	FILE *yy_input_file;

	char *yy_ch_buf;		/* input buffer */
	char *yy_buf_pos;		/* current position in input buffer */

	/* Size of input buffer in bytes, not including room for EOB
	 * characters.
	 */
	yy_size_t yy_buf_size;

	/* Number of characters read into yy_ch_buf, not including EOB
	 * characters.
	 */
	int yy_n_chars;

	/* Whether we "own" the buffer - i.e., we know we created it,
	 * and can realloc() it to grow it, and should free() it to
	 * delete it.
	 */
	int yy_is_our_buffer;

	/* Whether this is an "interactive" input source; if so, and
	 * if we're using stdio for input, then we want to use getc()
	 * instead of fread(), to make sure we stop fetching input after
	 * each newline.
	 */
	int yy_is_interactive;

	/* Whether we're considered to be at the beginning of a line.
	 * If so, '^' rules will be active on the next match, otherwise
	 * not.
	 */
	int yy_at_bol;

	/* Whether to try to fill the input buffer when we reach the
	 * end of it.
	 */
	int yy_fill_buffer;

	int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
	/* When an EOF's been seen but there's still some text to process
	 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
	 * shouldn't try reading from the input source any more.  We might
	 * still have a bunch of tokens to match, though, because of
	 * possible backing-up.
	 *
	 * When we actually see the EOF, we change the status to "new"
	 * (via yyrestart()), so that the user can continue scanning by
	 * just pointing yyin at a new input file.
	 */
#define YY_BUFFER_EOF_PENDING 2
	};

static YY_BUFFER_STATE yy_current_buffer = 0;

/* We provide macros for accessing buffer states in case in the
 * future we want to put the buffer states in a more general
 * "scanner state".
 */
#define YY_CURRENT_BUFFER yy_current_buffer


/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;

static int yy_n_chars;		/* number of characters read into yy_ch_buf */


int yyleng;

/* Points to current character in buffer. */
static char *yy_c_buf_p = (char *) 0;
static int yy_init = 1;		/* whether we need to initialize */
static int yy_start = 0;	/* start state number */

/* Flag which is used to allow yywrap()'s to do buffer switches
 * instead of setting up a fresh yyin.  A bit of a hack ...
 */
static int yy_did_buffer_switch_on_eof;

void yyrestart YY_PROTO(( FILE *input_file ));

void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
void yy_load_buffer_state YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )

YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
YY_BUFFER_STATE yy_scan_string YY_PROTO(( const char *str ));
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( const char *bytes, int len ));

static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
static void yy_flex_free YY_PROTO(( void * ));

#define yy_new_buffer yy_create_buffer

#define yy_set_interactive(is_interactive) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_is_interactive = is_interactive; \
	}

#define yy_set_bol(at_bol) \
	{ \
	if ( ! yy_current_buffer ) \
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
	yy_current_buffer->yy_at_bol = at_bol; \
	}

#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)


#define yywrap() 1
#define YY_SKIP_YYWRAP
typedef unsigned char YY_CHAR;
#ifdef VMS
#ifndef __VMS_POSIX
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
#else
FILE *yyin = stdin, *yyout = stdout;
#endif
#else
FILE *yyin = stdin, *yyout = stdout;
#endif
typedef int yy_state_type;
extern char *yytext;
#define yytext_ptr yytext

#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap YY_PROTO(( void ));
#else
extern int yywrap YY_PROTO(( void ));
#endif
#endif

#ifndef YY_NO_UNPUT
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
#endif

#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, const char *, int ));
#endif

#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
#endif

static yy_state_type yy_get_previous_state YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
static int yy_get_next_buffer YY_PROTO(( void ));
static void yy_fatal_error YY_PROTO(( const char msg[] ));

/* Done after the current pattern has been matched and before the
 * corresponding action - sets up yytext.
 */
#define YY_DO_BEFORE_ACTION \
	yytext_ptr = yy_bp; \
	yyleng = (int) (yy_cp - yy_bp); \
	yy_hold_char = *yy_cp; \
	*yy_cp = '\0'; \
	yy_c_buf_p = yy_cp;

#define YY_NUM_RULES 45
#define YY_END_OF_BUFFER 46
static const short int yy_accept[514] =
    {   0,
        0,    0,    3,    3,    6,    6,   46,   45,   40,   41,
       45,    5,   38,   39,   42,   45,   44,   42,   42,   42,
       42,   42,   42,   42,   42,   42,   42,   42,   42,   42,
       42,   20,   21,    3,    4,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        6,    7,    6,    6,    5,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,   40,    0,   43,   42,
        1,   44,   42,   42,   42,   42,   42,   42,   42,   42,

       42,   42,   42,   42,   42,   42,   42,   42,   42,   42,
       42,   42,   22,   42,    3,    3,    3,    3,    3,    3,
        2,    3,    1,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    6,    6,    6,    6,
        6,    1,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,   42,   42,   42,   42,   42,
       42,   42,   42,   42,   42,   42,   42,   42,   42,   42,
       42,   42,   42,   42,   42,   42,   42,   42,   42,   42,

        2,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,   42,   42,   42,   29,   42,   42,   42,    9,   42,
       42,   42,   42,   23,   42,   42,   42,    8,   30,   42,
       42,   42,   42,   42,   42,   42,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,

        3,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,   42,   42,   42,   15,
       42,   42,   42,   42,   42,   42,   42,   42,   11,   42,
       42,   42,   33,   12,   42,   24,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,   42,   42,   36,   42,
       42,   14,   42,   42,   42,   25,   42,   27,   37,   42,

       34,   42,   42,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
        6,    6,    6,    6,    6,    6,    6,   42,   42,   42,
       42,   32,   42,   42,   28,   42,   35,   42,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    6,
        6,    6,    6,    6,    6,    6,    6,    6,    6,    6,
       42,   18,   13,   42,   16,   42,   42,   10,    3,    3,
        3,    3,    3,    3,    3,    3,    6,    6,    6,    6,
        6,    6,    6,    6,   42,   26,   42,   31,    3,    3,

        3,    3,    6,    6,    6,    6,   19,   17,    3,    3,
        6,    6,    0
    } ;

static const int yy_ec[256] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,
        1,    1,    3,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    4,    5,    6,    7,    5,    5,    5,    8,    9,
       10,   11,    5,    5,    5,   12,   13,   14,   14,   14,
       14,   14,   14,   14,   14,   14,   14,    5,    5,    5,
        5,    5,    5,    5,   12,   12,   12,   12,   12,   12,
       12,   12,   12,   12,   12,   12,   12,   12,   12,   12,
       12,   12,   12,   12,   12,   12,   12,   12,   12,   12,
        5,    5,    5,    5,   15,    8,   16,   17,   18,   19,

       20,   21,   22,   23,   24,   12,   25,   26,   27,   28,
       29,   30,   12,   31,   32,   33,   34,   35,   36,   37,
       38,   12,    5,    5,    5,    1,    1,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,

        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5
    } ;

static const int yy_meta[39] =
    {   0,
        1,    2,    1,    3,    3,    3,    3,    4,    3,    3,
        3,    4,    3,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4,    4,    4,
        4,    4,    4,    4,    4,    4,    4,    4
    } ;

static const short int yy_base[522] =
    {   0,
        0,    0,   38,    0,   76,    0,  712, 2078,  113, 2078,
      704, 2078, 2078, 2078,    0,  698,  694,  100,  676,  679,
       99,   97,  682,  668,  675,  661,  665,  100,  659,  101,
      650,    0,    0,  129, 2078,  659,  130,  654,  653,  648,
      124,  140,  647,  141,  154,  150,  153,  168,  164,  180,
      183,  192,  201,  202,  216,  219,  230,  231,  240,  241,
      169, 2078,    0,  132,    0,    0,    0,  269,  645,  638,
      281,  277,  280,  295,  291,  307,  310,  319,  328,  329,
      343,  346,  357,  358,  367,  368,  187,  645, 2078,    0,
     2078,  635,  629,  630,  609,  602,  175,  592,  191,  595,

      603,  580,  580,  583,  559,  576,  191,  555,  573,  558,
      570,  556,    0,  563,  247,  567,  216,  137,  561,  392,
      558,  377,  255,  143,  386,  396,  397,  400,  418,  419,
      429,  433,  445,  448,  449,  459,  460,  469,  483,  484,
      500,  501,  504,  515,  516,  527,  296,    0,  179,    0,
      531,    0,  550,  541,  551,  552,  555,  573,  574,  584,
      588,  600,  603,  604,  614,  615,  624,  638,  639,  655,
      656,  659,  670,  671,  682,  537,  543,  531,  531,  523,
      517,  528,  521,  503,  511,  516,  507,  492,  493,  490,
      489,  484,  483,  474,  470,  463,  467,  462,  460,  454,

      331,  691,  701,  702,  711,  720,  721,  731,  741,  740,
      750,  759,  760,  769,  770,  781,  784,  795,  796,  805,
      806,  815,  825,  829,  839,  848,  849,  864,  863,  873,
      882,  883,  893,  903,  902,  912,  921,  922,  931,  932,
      943,  946,  957,  958,  967,  968,  977,  987,  991, 1001,
     1010,  458,  439,  450,    0,  432,  436,  436,    0,  423,
      409,  409,  415,    0,  413,  401,  405,    0,    0,  412,
      411,  407,  400,  394,  383,  384, 1011, 1020, 1029, 1030,
     1039, 1040, 1049, 1050, 1059, 1060, 1069, 1070, 1079, 1088,
     1091, 1102, 1103, 1113, 1114, 1117, 1128, 1131, 1142, 1143,

     1152, 1161, 1162, 1171, 1172, 1181, 1182, 1191, 1192, 1201,
     1202, 1211, 1212, 1221, 1230, 1233, 1244, 1245, 1255, 1256,
     1259, 1270, 1273, 1284, 1285, 1294,  369,  369,  358,    0,
      357,  345,  345,  339,  338,  330,  327,  324,    0,  329,
      324,  321,  186,    0,  331,    0, 1303, 1304, 1313, 1322,
     1325, 1334, 1344, 1348, 1360, 1363, 1374, 1377, 1386, 1395,
     1396, 1406, 1420, 1417, 1421, 1431, 1435, 1445, 1446, 1456,
     1465, 1466, 1476, 1480, 1492, 1495, 1506, 1509, 1518, 1527,
     1528, 1538, 1552, 1549, 1553, 1563,  317,  311,    0,  297,
      304,    0,  305,  289,  287,    0,  292,    0,    0,  286,

        0,  263,  256, 1567, 1577, 1578, 1581, 1593, 1596, 1607,
     1597, 1608, 1617, 1618, 1627, 1628, 1637, 1638, 1647, 1648,
     1658, 1662, 1672, 1673, 1676, 1687, 1688, 1691, 1702, 1703,
     1713, 1712, 1722, 1723, 1732, 1733, 1742,  250,  250,  245,
      243,    0,  236,  227,    0,  218,    0,  217, 1752, 1756,
     1766, 1767, 1777, 1778, 1781, 1792, 1796, 1795, 1807, 1810,
     1819, 1829, 1830, 1833, 1844, 1847, 1848, 1858, 1867, 1870,
      206,    0,    0,  205,    0,  200,  178,    0, 1879, 1882,
     1893, 1896, 1897, 1907, 1917, 1916, 1926, 1927, 1936, 1945,
     1946, 1955, 1956, 1965,  149,    0,  143,    0, 1974, 1975,

     1986, 1985, 1997, 1996, 2008, 2007,    0,    0, 2017, 2018,
     2027, 2028, 2078, 2055,  123, 2058, 2061, 2064, 2067, 2070,
     2073
    } ;

static const short int yy_def[522] =
    {   0,
      513,    1,  513,    3,  513,    5,  513,  513,  513,  513,
      514,  513,  513,  513,  515,  513,  513,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,
      515,  515,  515,  516,  513,  516,  517,  516,  516,  516,
      516,  518,  516,  516,  518,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
      519,  513,  519,  520,  519,  519,  519,  521,  519,  519,
      521,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,  513,  514,  513,  515,
      513,  513,  515,  515,  515,  515,  515,  515,  515,  515,

      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,
      515,  515,  515,  515,  516,  516,  516,  517,  516,  517,
      516,   45,  516,  516,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,  519,  519,  520,  519,
       71,  519,  519,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,  515,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,

      517,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,  515,  515,  515,  515,  515,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,

       45,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,  515,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,  515,  515,

      515,  515,  515,   45,   45,   45,   45,   45,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   45,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
       71,   71,   71,   71,   71,   71,   71,  515,  515,  515,
      515,  515,  515,  515,  515,  515,  515,  515,   45,   45,
       45,   45,   45,   45,   45,   45,   45,   45,   45,   71,
       71,   71,   71,   71,   71,   71,   71,   71,   71,   71,
      515,  515,  515,  515,  515,  515,  515,  515,   45,   45,
       45,   45,   45,   45,   45,   45,   71,   71,   71,   71,
       71,   71,   71,   71,  515,  515,  515,  515,   45,   45,

       45,   45,   71,   71,   71,   71,  515,  515,   45,   45,
       71,   71,    0,  513,  513,  513,  513,  513,  513,  513,
      513
    } ;

static const short int yy_nxt[2117] =
    {   0,
        8,    9,   10,    9,    8,   11,   12,    8,   13,   14,
        8,   15,   16,   17,   15,   15,   18,   19,   20,   21,
       22,   15,   23,   24,   15,   25,   15,   26,   15,   27,
       28,   29,   30,   15,   15,   31,   32,   33,    8,   34,
       35,   34,   36,   37,   38,   36,   39,   40,   41,   42,
       43,   44,   42,   42,   45,   46,   47,   48,   49,   42,
       50,   51,   42,   52,   42,   53,   42,   54,   55,   56,
       57,   42,   42,   58,   59,   60,    8,   61,   62,   61,
       63,   64,   65,   63,   66,   67,   63,   68,   69,   70,
       68,   68,   71,   72,   73,   74,   75,   68,   76,   77,

       68,   78,   68,   79,   68,   80,   81,   82,   83,   68,
       68,   84,   85,   86,   87,   93,   87,   99,  101,  109,
      112,   94,  110,   95,  100,  102,   90,  103,   96,  113,
      115,  116,  115,  148,  117,  119,  121,  150,  116,  117,
      120,  116,  119,  116,  116,  116,  116,  120,  116,  116,
      117,  117,  116,  117,  124,  116,  124,  116,  116,  116,
      116,  508,  116,  116,  117,  122,  116,  507,  122,  125,
      147,  122,  147,  122,  122,  126,  130,  127,  129,  122,
      148,  122,  128,  122,  150,  133,  131,  122,   87,  122,
       87,  122,  134,  132,  135,  122,  122,  498,  122,  136,

      180,  122,  181,  122,  122,  401,  122,  138,  122,  192,
      137,  122,  183,  122,  184,  122,  122,  122,  193,  402,
      122,  194,  122,  122,  122,  140,  117,  497,  121,  139,
      122,  122,  496,  495,  122,  141,  478,  122,  142,  122,
      122,  143,  122,  477,  122,  122,  122,  122,  115,  144,
      115,  122,  122,  122,  146,  122,  122,  117,  145,  122,
      476,  122,  122,  122,  122,  117,  475,  121,  122,  122,
      148,  474,  148,  148,  148,  148,  473,  148,  148,  148,
      472,  148,  148,  471,  148,  148,  148,  148,  448,  148,
      148,  148,  151,  148,  447,  151,  154,  147,  151,  147,

      151,  151,  155,  159,  156,  158,  151,  446,  151,  157,
      151,  445,  162,  160,  151,  444,  151,  443,  151,  163,
      161,  164,  151,  151,  442,  151,  165,  441,  151,  440,
      151,  151,  116,  151,  167,  151,  119,  166,  151,  439,
      151,  120,  151,  151,  151,  438,  403,  151,  400,  151,
      151,  151,  169,  399,  398,  397,  168,  151,  151,  396,
      395,  151,  170,  394,  151,  171,  151,  151,  172,  151,
      393,  151,  151,  151,  151,  392,  173,  391,  151,  151,
      151,  175,  151,  151,  390,  174,  151,  389,  151,  151,
      151,  151,  122,  116,  388,  151,  151,  119,  122,  387,

      122,  122,  120,  202,  201,  122,  346,  122,  345,  122,
      203,  122,  122,  344,  122,  122,  343,  122,  122,  122,
      122,  122,  342,  122,  122,  122,  341,  340,  122,  204,
      339,  338,  205,  122,  122,  337,  336,  335,  334,  122,
      122,  122,  122,  206,  122,  207,  122,  122,  122,  208,
      209,  333,  210,  332,  122,  331,  122,  122,  211,  212,
      122,  122,  330,  122,  122,  329,  122,  328,  122,  122,
      122,  122,  122,  122,  122,  122,  122,  214,  213,  327,
      122,  122,  215,  122,  122,  217,  276,  122,  122,  275,
      122,  274,  122,  273,  216,  272,  271,  122,  122,  122,

      270,  218,  269,  268,  122,  122,  122,  122,  267,  266,
      219,  122,  122,  220,  265,  122,  122,  222,  264,  224,
      221,  122,  122,  122,  122,  122,  263,  122,  122,  223,
      122,  122,  122,  262,  261,  260,  122,  122,  122,  122,
      259,  225,  122,  122,  122,  226,  151,  258,  122,  257,
      122,  256,  151,  255,  151,  122,  151,  254,  227,  151,
      253,  252,  151,  153,  151,  228,  151,  151,  117,  151,
      151,  117,  151,  151,  151,  151,  151,  117,  151,  151,
      151,  200,  199,  151,  229,  198,  197,  230,  151,  151,
      196,  195,  191,  190,  151,  151,  151,  151,  231,  151,

      232,  151,  151,  151,  233,  234,  189,  235,  188,  151,
      187,  151,  151,  236,  237,  151,  151,  186,  151,  151,
      185,  151,  182,  151,  151,  151,  151,  151,  151,  151,
      151,  151,  239,  238,  179,  151,  151,  240,  151,  151,
      242,  178,  151,  151,  177,  151,  176,  151,   92,  241,
       89,  153,  151,  151,  151,  152,  243,  123,  117,  151,
      151,  151,  151,  117,  117,  244,  151,  151,  245,  117,
      151,  151,  247,  114,  249,  246,  151,  151,  151,  151,
      151,  111,  151,  151,  248,  151,  151,  151,  108,  107,
      106,  151,  151,  151,  151,  105,  250,  151,  151,  151,

      251,  104,   98,  151,   97,  151,  122,   92,   91,   89,
      151,  513,  122,  513,  122,  277,  122,  122,  278,  122,
      513,  513,  122,  122,  122,  122,  122,  513,  279,  122,
      122,  513,  122,  280,  122,  122,  122,  513,  513,  122,
      513,  122,  122,  122,  122,  513,  122,  513,  281,  122,
      283,  513,  122,  282,  122,  122,  122,  513,  513,  122,
      284,  122,  122,  122,  122,  122,  513,  513,  122,  122,
      513,  122,  285,  286,  122,  122,  287,  513,  122,  288,
      122,  122,  122,  122,  122,  122,  513,  122,  122,  513,
      122,  290,  122,  122,  513,  289,  122,  122,  122,  122,

      291,  513,  122,  292,  122,  122,  513,  122,  513,  122,
      122,  122,  122,  513,  293,  294,  122,  122,  122,  122,
      122,  122,  513,  122,  122,  513,  122,  122,  122,  122,
      122,  295,  296,  122,  122,  513,  122,  513,  122,  513,
      122,  513,  513,  122,  122,  513,  122,  297,  122,  513,
      122,  298,  122,  122,  122,  513,  513,  122,  299,  513,
      122,  513,  122,  122,  151,  513,  513,  122,  300,  122,
      151,  122,  151,  302,  513,  513,  122,  151,  151,  151,
      301,  303,  513,  513,  151,  151,  151,  151,  151,  304,
      513,  151,  151,  513,  151,  305,  151,  151,  151,  513,

      513,  151,  513,  151,  151,  151,  151,  513,  151,  513,
      306,  151,  308,  513,  151,  307,  151,  151,  151,  513,
      513,  151,  309,  151,  151,  151,  151,  151,  513,  513,
      151,  151,  513,  151,  310,  311,  151,  151,  312,  513,
      151,  313,  151,  151,  151,  151,  151,  151,  513,  151,
      151,  513,  151,  315,  151,  151,  513,  314,  151,  151,
      151,  151,  316,  513,  151,  317,  151,  151,  513,  151,
      513,  151,  151,  151,  151,  513,  318,  319,  151,  151,
      151,  151,  151,  151,  513,  151,  151,  513,  151,  151,
      151,  151,  151,  320,  321,  151,  151,  513,  151,  513,

      151,  513,  151,  513,  513,  151,  151,  513,  151,  322,
      151,  513,  151,  323,  151,  151,  151,  513,  513,  151,
      324,  513,  151,  513,  151,  151,  122,  513,  513,  151,
      325,  151,  347,  151,  122,  122,  513,  513,  151,  122,
      513,  122,  326,  122,  349,  122,  513,  513,  348,  513,
      122,  122,  122,  122,  122,  122,  513,  122,  122,  351,
      122,  122,  122,  122,  122,  122,  352,  122,  122,  350,
      122,  122,  122,  122,  122,  122,  513,  122,  122,  513,
      122,  122,  122,  122,  122,  122,  513,  353,  122,  354,
      122,  356,  122,  122,  122,  513,  513,  355,  122,  513,

      122,  513,  122,  122,  513,  513,  122,  122,  513,  122,
      357,  122,  122,  513,  122,  513,  122,  122,  122,  122,
      513,  358,  513,  122,  122,  122,  122,  359,  122,  360,
      122,  122,  361,  513,  122,  122,  122,  122,  122,  513,
      122,  122,  122,  362,  513,  122,  122,  363,  513,  122,
      513,  122,  122,  513,  122,  513,  122,  122,  122,  122,
      513,  364,  513,  122,  122,  122,  122,  122,  365,  513,
      122,  122,  513,  122,  366,  122,  151,  151,  513,  513,
      122,  513,  367,  151,  151,  151,  369,  151,  513,  151,
      368,  513,  151,  151,  151,  151,  151,  151,  513,  151,

      151,  371,  151,  151,  151,  151,  151,  151,  372,  151,
      151,  370,  151,  151,  151,  151,  151,  151,  513,  151,
      151,  513,  151,  151,  151,  151,  151,  151,  513,  373,
      151,  374,  151,  376,  151,  151,  151,  513,  513,  375,
      151,  513,  151,  513,  151,  151,  513,  513,  151,  151,
      513,  151,  377,  151,  151,  513,  151,  513,  151,  151,
      151,  151,  513,  378,  513,  151,  151,  151,  151,  379,
      151,  380,  151,  151,  381,  513,  151,  151,  151,  151,
      151,  513,  151,  151,  151,  382,  513,  151,  151,  383,
      513,  151,  513,  151,  151,  513,  151,  513,  151,  151,

      151,  151,  513,  384,  513,  151,  151,  151,  151,  151,
      385,  513,  151,  151,  513,  151,  386,  151,  122,  122,
      513,  513,  151,  513,  122,  122,  122,  122,  122,  405,
      513,  122,  122,  404,  122,  513,  122,  122,  513,  513,
      122,  122,  406,  122,  513,  122,  122,  513,  122,  122,
      122,  513,  407,  122,  513,  122,  513,  122,  513,  122,
      513,  513,  122,  122,  513,  122,  408,  122,  513,  122,
      513,  122,  122,  513,  409,  122,  122,  513,  122,  410,
      513,  122,  513,  122,  122,  411,  122,  513,  122,  122,
      513,  122,  122,  412,  513,  122,  513,  122,  122,  513,

      122,  122,  122,  513,  513,  122,  413,  122,  414,  122,
      122,  122,  513,  513,  122,  513,  122,  122,  122,  122,
      415,  122,  513,  122,  122,  416,  513,  122,  513,  122,
      513,  513,  122,  417,  122,  122,  420,  513,  122,  418,
      122,  122,  122,  122,  122,  122,  122,  513,  122,  122,
      151,  513,  122,  419,  122,  513,  151,  513,  151,  122,
      151,  151,  513,  151,  513,  421,  151,  151,  151,  151,
      422,  151,  513,  151,  151,  423,  513,  151,  513,  151,
      151,  151,  513,  513,  151,  513,  151,  151,  151,  151,
      513,  151,  424,  151,  151,  151,  513,  151,  425,  151,

      513,  151,  513,  151,  151,  513,  426,  151,  151,  513,
      151,  427,  513,  151,  513,  151,  151,  428,  151,  513,
      151,  151,  513,  151,  151,  429,  513,  151,  513,  151,
      151,  513,  151,  151,  151,  513,  513,  151,  430,  151,
      431,  151,  151,  151,  513,  513,  151,  513,  151,  151,
      151,  151,  432,  151,  513,  151,  151,  433,  513,  151,
      513,  151,  513,  513,  151,  434,  151,  151,  437,  513,
      151,  435,  151,  151,  151,  151,  151,  151,  151,  513,
      151,  151,  122,  513,  151,  436,  151,  513,  122,  513,
      122,  151,  122,  122,  513,  449,  122,  513,  122,  122,

      122,  122,  122,  513,  122,  450,  122,  513,  122,  122,
      513,  122,  122,  451,  122,  513,  452,  122,  122,  122,
      122,  122,  122,  122,  122,  454,  453,  513,  122,  122,
      122,  122,  122,  122,  513,  122,  455,  456,  122,  122,
      122,  122,  122,  122,  513,  122,  122,  513,  122,  122,
      122,  122,  122,  122,  513,  122,  122,  513,  457,  122,
      122,  122,  122,  122,  513,  122,  122,  513,  122,  122,
      122,  122,  513,  151,  513,  122,  122,  151,  458,  151,
      459,  151,  513,  151,  513,  151,  460,  151,  151,  513,
      461,  151,  513,  151,  151,  151,  151,  151,  513,  463,

      151,  151,  151,  151,  151,  462,  151,  464,  151,  151,
      151,  151,  151,  513,  151,  151,  151,  151,  151,  465,
      513,  513,  513,  151,  151,  151,  151,  151,  151,  513,
      466,  151,  467,  151,  151,  151,  151,  151,  151,  513,
      151,  151,  513,  151,  468,  151,  151,  151,  151,  513,
      151,  151,  513,  151,  151,  151,  151,  151,  513,  513,
      151,  151,  513,  151,  469,  151,  513,  122,  513,  513,
      151,  122,  513,  122,  470,  122,  513,  122,  513,  122,
      122,  122,  122,  513,  122,  479,  480,  122,  122,  122,
      122,  513,  122,  122,  122,  482,  122,  481,  122,  122,

      122,  122,  122,  513,  122,  122,  122,  122,  483,  122,
      122,  122,  513,  122,  484,  122,  122,  122,  122,  122,
      122,  485,  122,  122,  122,  151,  486,  513,  122,  513,
      122,  151,  513,  151,  151,  122,  513,  513,  151,  513,
      151,  513,  151,  487,  151,  151,  513,  151,  151,  488,
      151,  151,  151,  151,  151,  513,  151,  151,  490,  151,
      489,  151,  151,  151,  513,  151,  513,  151,  151,  151,
      151,  151,  151,  151,  491,  151,  151,  513,  513,  151,
      492,  151,  151,  493,  513,  151,  151,  513,  151,  494,
      151,  151,  513,  151,  122,  151,  513,  122,  151,  513,

      122,  513,  122,  122,  513,  122,  499,  122,  122,  513,
      122,  122,  122,  513,  122,  513,  122,  122,  122,  122,
      122,  122,  122,  500,  122,  122,  513,  513,  122,  513,
      122,  122,  122,  513,  501,  122,  502,  122,  122,  122,
      122,  151,  151,  513,  122,  122,  513,  151,  151,  151,
      151,  151,  513,  503,  151,  151,  513,  151,  513,  151,
      151,  151,  513,  513,  151,  513,  151,  151,  151,  151,
      151,  151,  504,  151,  151,  506,  151,  151,  151,  151,
      151,  513,  505,  151,  151,  513,  151,  513,  151,  122,
      122,  513,  509,  151,  513,  122,  122,  122,  122,  513,

      122,  122,  122,  122,  510,  513,  122,  122,  122,  122,
      513,  151,  151,  122,  122,  511,  513,  151,  151,  151,
      151,  513,  151,  151,  151,  151,  512,  513,  151,  151,
      151,  151,  122,  122,  513,  151,  151,  513,  122,  122,
      122,  122,  151,  151,  513,  122,  122,  513,  151,  151,
      151,  151,  513,  513,  513,  151,  151,   88,   88,  116,
      116,  116,  118,  118,  118,  122,  122,  122,  148,  148,
      148,  149,  149,  149,  151,  151,  151,    7,  513,  513,
      513,  513,  513,  513,  513,  513,  513,  513,  513,  513,
      513,  513,  513,  513,  513,  513,  513,  513,  513,  513,

      513,  513,  513,  513,  513,  513,  513,  513,  513,  513,
      513,  513,  513,  513,  513,  513
    } ;

static const short int yy_chk[2117] =
    {   0,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,
        1,    1,    1,    1,    1,    1,    1,    1,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    3,    3,    3,    3,
        3,    3,    3,    3,    3,    3,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,

        5,    5,    5,    5,    5,    5,    5,    5,    5,    5,
        5,    5,    5,    5,    9,   18,    9,   21,   22,   28,
       30,   18,   28,   18,   21,   22,  515,   22,   18,   30,
       34,   37,   34,   64,   41,   37,   41,   64,  118,   34,
       37,   42,  118,   42,   42,   42,   42,  118,   42,   42,
       42,   44,   42,  124,   44,   45,  124,   45,   45,   45,
       45,  497,   45,   45,   45,   46,   45,  495,   47,   45,
       61,   46,   61,   46,   47,   45,   47,   45,   46,   49,
      149,   47,   45,   48,  149,   49,   48,   49,   87,   48,
       87,   48,   49,   48,   49,   50,   48,  477,   51,   50,

       97,   50,   97,   50,   51,  343,   51,   52,   50,  107,
       51,   51,   99,   52,   99,   52,   53,   54,  107,  343,
       52,  107,   53,   54,   53,   54,  117,  476,  117,   53,
       54,   55,  474,  471,   56,   55,  448,   55,   55,   55,
       56,   56,   56,  446,   55,   57,   58,   56,  115,   57,
      115,   57,   58,   57,   58,   59,   60,  115,   57,   58,
      444,   59,   60,   59,   60,  123,  443,  123,   59,   60,
       68,  441,   68,   68,   68,   68,  440,   68,   68,   68,
      439,   68,   71,  438,   71,   71,   71,   71,  403,   71,
       71,   71,   72,   71,  402,   73,   71,  147,   72,  147,

       72,   73,   71,   73,   71,   72,   75,  400,   73,   71,
       74,  397,   75,   74,   75,  395,   74,  394,   74,   75,
       74,   75,   76,   74,  393,   77,   76,  391,   76,  390,
       76,   77,  201,   77,   78,   76,  201,   77,   77,  388,
       78,  201,   78,   79,   80,  387,  345,   78,  342,   79,
       80,   79,   80,  341,  340,  338,   79,   80,   81,  337,
      336,   82,   81,  335,   81,   81,   81,   82,   82,   82,
      334,   81,   83,   84,   82,  333,   83,  332,   83,   84,
       83,   84,   85,   86,  331,   83,   84,  329,   85,   86,
       85,   86,  122,  120,  328,   85,   86,  120,  122,  327,

      122,  125,  120,  125,  120,  122,  276,  125,  275,  125,
      126,  126,  127,  274,  125,  128,  273,  126,  127,  126,
      127,  128,  272,  128,  126,  127,  271,  270,  128,  127,
      267,  266,  128,  129,  130,  265,  263,  262,  261,  129,
      130,  129,  130,  129,  131,  129,  129,  130,  132,  130,
      131,  260,  131,  258,  132,  257,  132,  131,  132,  133,
      133,  132,  256,  134,  135,  254,  133,  253,  133,  134,
      135,  134,  135,  133,  136,  137,  134,  135,  134,  252,
      136,  137,  136,  137,  138,  138,  200,  136,  137,  199,
      138,  198,  138,  197,  137,  196,  195,  138,  139,  140,

      194,  139,  193,  192,  139,  140,  139,  140,  191,  190,
      139,  139,  140,  139,  189,  141,  142,  141,  188,  143,
      140,  141,  142,  141,  142,  143,  187,  143,  141,  142,
      144,  145,  143,  186,  185,  184,  144,  145,  144,  145,
      183,  144,  146,  144,  145,  146,  151,  182,  146,  181,
      146,  180,  151,  179,  151,  146,  154,  178,  154,  151,
      177,  176,  154,  153,  154,  155,  155,  156,  121,  154,
      157,  119,  155,  156,  155,  156,  157,  116,  157,  155,
      156,  114,  112,  157,  156,  111,  110,  157,  158,  159,
      109,  108,  106,  105,  158,  159,  158,  159,  158,  160,

      158,  158,  159,  161,  159,  160,  104,  160,  103,  161,
      102,  161,  160,  161,  162,  162,  161,  101,  163,  164,
      100,  162,   98,  162,  163,  164,  163,  164,  162,  165,
      166,  163,  164,  163,   96,  165,  166,  165,  166,  167,
      167,   95,  165,  166,   94,  167,   93,  167,   92,  166,
       88,   70,  167,  168,  169,   69,  168,   43,   40,  168,
      169,  168,  169,   39,   38,  168,  168,  169,  168,   36,
      170,  171,  170,   31,  172,  169,  170,  171,  170,  171,
      172,   29,  172,  170,  171,  173,  174,  172,   27,   26,
       25,  173,  174,  173,  174,   24,  173,  175,  173,  174,

      175,   23,   20,  175,   19,  175,  202,   17,   16,   11,
      175,    7,  202,    0,  202,  202,  203,  204,  203,  202,
        0,    0,  203,  204,  203,  204,  205,    0,  204,  203,
      204,    0,  205,  205,  205,  206,  207,    0,    0,  205,
        0,  206,  207,  206,  207,    0,  208,    0,  206,  207,
      208,    0,  208,  207,  208,  210,  209,    0,    0,  208,
      209,  210,  209,  210,  209,  211,    0,    0,  210,  209,
        0,  211,  210,  211,  212,  213,  212,    0,  211,  213,
      212,  213,  212,  213,  214,  215,    0,  212,  213,    0,
      214,  215,  214,  215,    0,  214,  216,  214,  215,  217,

      216,    0,  216,  217,  216,  217,    0,  217,    0,  216,
      218,  219,  217,    0,  218,  219,  218,  219,  218,  219,
      220,  221,    0,  218,  219,    0,  220,  221,  220,  221,
      222,  220,  221,  220,  221,    0,  222,    0,  222,    0,
      223,    0,    0,  222,  224,    0,  223,  222,  223,    0,
      224,  223,  224,  223,  225,    0,    0,  224,  224,    0,
      225,    0,  225,  226,  227,    0,    0,  225,  225,  226,
      227,  226,  227,  227,    0,    0,  226,  227,  229,  228,
      226,  228,    0,    0,  229,  228,  229,  228,  230,  229,
        0,  229,  228,    0,  230,  230,  230,  231,  232,    0,

        0,  230,    0,  231,  232,  231,  232,    0,  233,    0,
      231,  232,  233,    0,  233,  232,  233,  235,  234,    0,
        0,  233,  234,  235,  234,  235,  234,  236,    0,    0,
      235,  234,    0,  236,  235,  236,  237,  238,  237,    0,
      236,  238,  237,  238,  237,  238,  239,  240,    0,  237,
      238,    0,  239,  240,  239,  240,    0,  239,  241,  239,
      240,  242,  241,    0,  241,  242,  241,  242,    0,  242,
        0,  241,  243,  244,  242,    0,  243,  244,  243,  244,
      243,  244,  245,  246,    0,  243,  244,    0,  245,  246,
      245,  246,  247,  245,  246,  245,  246,    0,  247,    0,

      247,    0,  248,    0,    0,  247,  249,    0,  248,  247,
      248,    0,  249,  248,  249,  248,  250,    0,    0,  249,
      249,    0,  250,    0,  250,  251,  277,    0,    0,  250,
      250,  251,  277,  251,  277,  278,    0,    0,  251,  277,
        0,  278,  251,  278,  279,  280,    0,    0,  278,    0,
      279,  280,  279,  280,  281,  282,    0,  279,  280,  282,
      281,  282,  281,  282,  283,  284,  283,  281,  282,  281,
      283,  284,  283,  284,  285,  286,    0,  283,  284,    0,
      285,  286,  285,  286,  287,  288,    0,  285,  286,  286,
      287,  288,  287,  288,  289,    0,    0,  287,  288,    0,

      289,    0,  289,  290,    0,    0,  291,  289,    0,  290,
      290,  290,  291,    0,  291,    0,  290,  292,  293,  291,
        0,  291,    0,  292,  293,  292,  293,  292,  294,  295,
      292,  293,  296,    0,  294,  295,  294,  295,  296,    0,
      296,  294,  295,  297,    0,  296,  298,  298,    0,  297,
        0,  297,  298,    0,  298,    0,  297,  299,  300,  298,
        0,  299,    0,  299,  300,  299,  300,  301,  300,    0,
      299,  300,    0,  301,  301,  301,  302,  303,    0,    0,
      301,    0,  302,  303,  302,  303,  304,  305,    0,  302,
      303,    0,  304,  305,  304,  305,  306,  307,    0,  304,

      305,  307,  306,  307,  306,  307,  308,  309,  308,  306,
      307,  306,  308,  309,  308,  309,  310,  311,    0,  308,
      309,    0,  310,  311,  310,  311,  312,  313,    0,  310,
      311,  311,  312,  313,  312,  313,  314,    0,    0,  312,
      313,    0,  314,    0,  314,  315,    0,    0,  316,  314,
        0,  315,  315,  315,  316,    0,  316,    0,  315,  317,
      318,  316,    0,  316,    0,  317,  318,  317,  318,  317,
      319,  320,  317,  318,  321,    0,  319,  320,  319,  320,
      321,    0,  321,  319,  320,  322,    0,  321,  323,  323,
        0,  322,    0,  322,  323,    0,  323,    0,  322,  324,

      325,  323,    0,  324,    0,  324,  325,  324,  325,  326,
      325,    0,  324,  325,    0,  326,  326,  326,  347,  348,
        0,    0,  326,    0,  347,  348,  347,  348,  349,  348,
        0,  347,  348,  347,  349,    0,  349,  350,    0,    0,
      351,  349,  349,  350,    0,  350,  351,    0,  351,  352,
      350,    0,  351,  351,    0,  352,    0,  352,    0,  353,
        0,    0,  352,  354,    0,  353,  352,  353,    0,  354,
        0,  354,  353,    0,  353,  355,  354,    0,  356,  354,
        0,  355,    0,  355,  356,  355,  356,    0,  355,  357,
        0,  356,  358,  356,    0,  357,    0,  357,  358,    0,

      358,  359,  357,    0,    0,  358,  357,  359,  358,  359,
      360,  361,    0,    0,  359,    0,  360,  361,  360,  361,
      360,  362,    0,  360,  361,  361,    0,  362,    0,  362,
        0,    0,  364,  362,  362,  363,  365,    0,  364,  363,
      364,  363,  365,  363,  365,  364,  366,    0,  363,  365,
      367,    0,  366,  363,  366,    0,  367,    0,  367,  366,
      368,  369,    0,  367,    0,  367,  368,  369,  368,  369,
      368,  370,    0,  368,  369,  369,    0,  370,    0,  370,
      371,  372,    0,    0,  370,    0,  371,  372,  371,  372,
        0,  373,  371,  371,  372,  374,    0,  373,  372,  373,

        0,  374,    0,  374,  373,    0,  373,  375,  374,    0,
      376,  374,    0,  375,    0,  375,  376,  375,  376,    0,
      375,  377,    0,  376,  378,  376,    0,  377,    0,  377,
      378,    0,  378,  379,  377,    0,    0,  378,  377,  379,
      378,  379,  380,  381,    0,    0,  379,    0,  380,  381,
      380,  381,  380,  382,    0,  380,  381,  381,    0,  382,
        0,  382,    0,    0,  384,  382,  382,  383,  385,    0,
      384,  383,  384,  383,  385,  383,  385,  384,  386,    0,
      383,  385,  404,    0,  386,  383,  386,    0,  404,    0,
      404,  386,  405,  406,    0,  404,  407,    0,  405,  406,

      405,  406,  407,    0,  407,  405,  406,    0,  408,  407,
        0,  409,  411,  407,  408,    0,  408,  409,  411,  409,
      411,  408,  410,  412,  409,  411,  410,    0,  410,  412,
      410,  412,  413,  414,    0,  410,  412,  414,  413,  414,
      413,  414,  415,  416,    0,  413,  414,    0,  415,  416,
      415,  416,  417,  418,    0,  415,  416,    0,  417,  418,
      417,  418,  419,  420,    0,  417,  418,    0,  419,  420,
      419,  420,    0,  421,    0,  419,  420,  422,  419,  421,
      420,  421,    0,  422,    0,  422,  421,  423,  424,    0,
      422,  425,    0,  423,  424,  423,  424,  425,    0,  425,

      423,  424,  426,  427,  425,  424,  428,  427,  426,  427,
      426,  427,  428,    0,  428,  426,  427,  429,  430,  428,
        0,    0,    0,  429,  430,  429,  430,  432,  431,    0,
      429,  430,  431,  432,  431,  432,  431,  433,  434,    0,
      432,  431,    0,  433,  434,  433,  434,  435,  436,    0,
      433,  434,    0,  435,  436,  435,  436,  437,    0,    0,
      435,  436,    0,  437,  436,  437,    0,  449,    0,    0,
      437,  450,    0,  449,  437,  449,    0,  450,    0,  450,
      449,  451,  452,    0,  450,  449,  450,  451,  452,  451,
      452,    0,  453,  454,  451,  452,  455,  451,  453,  454,

      453,  454,  455,    0,  455,  453,  454,  456,  454,  455,
      458,  457,    0,  456,  455,  456,  458,  457,  458,  457,
      456,  457,  459,  458,  457,  460,  459,    0,  459,    0,
      459,  460,    0,  460,  461,  459,    0,    0,  460,    0,
      461,    0,  461,  460,  462,  463,    0,  461,  464,  461,
      462,  463,  462,  463,  464,    0,  464,  462,  463,  465,
      462,  464,  466,  467,    0,  465,    0,  465,  466,  467,
      466,  467,  465,  468,  465,  466,  467,    0,    0,  468,
      466,  468,  469,  468,    0,  470,  468,    0,  469,  470,
      469,  470,    0,  470,  479,  469,    0,  480,  470,    0,

      479,    0,  479,  480,    0,  480,  479,  479,  481,    0,
      480,  482,  483,    0,  481,    0,  481,  482,  483,  482,
      483,  481,  484,  482,  482,  483,    0,    0,  484,    0,
      484,  486,  485,    0,  484,  484,  485,  486,  485,  486,
      485,  487,  488,    0,  486,  485,    0,  487,  488,  487,
      488,  489,    0,  487,  487,  488,    0,  489,    0,  489,
      490,  491,    0,    0,  489,    0,  490,  491,  490,  491,
      492,  493,  490,  490,  491,  493,  492,  493,  492,  493,
      494,    0,  492,  492,  493,    0,  494,    0,  494,  499,
      500,    0,  499,  494,    0,  499,  500,  499,  500,    0,

      502,  501,  499,  500,  501,    0,  502,  501,  502,  501,
        0,  504,  503,  502,  501,  503,    0,  504,  503,  504,
      503,    0,  506,  505,  504,  503,  505,    0,  506,  505,
      506,  505,  509,  510,    0,  506,  505,    0,  509,  510,
      509,  510,  511,  512,    0,  509,  510,    0,  511,  512,
      511,  512,    0,    0,    0,  511,  512,  514,  514,  516,
      516,  516,  517,  517,  517,  518,  518,  518,  519,  519,
      519,  520,  520,  520,  521,  521,  521,  513,  513,  513,
      513,  513,  513,  513,  513,  513,  513,  513,  513,  513,
      513,  513,  513,  513,  513,  513,  513,  513,  513,  513,

      513,  513,  513,  513,  513,  513,  513,  513,  513,  513,
      513,  513,  513,  513,  513,  513
    } ;

static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;

/* The intent behind this definition is that it'll catch
 * any uses of REJECT which flex missed.
 */
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
char *yytext;
#line 1 "ginger.l"
#define INITIAL 0
#line 2 "ginger.l"
/* $Id: ginger.l,v 1.11 1996/03/11 11:19:37 lupus Exp $ */

/***************************************************************
 * This file is part of the Ginger project.                    *
 * Created 31-12-1995                                          *
 * Niels C. Larsen, Aalborg University, Denmark                *
 * (lupus@iesd.auc.dk)                                         *
 ***************************************************************/

/* ---  Lex-specification for the GGL (Ginger Graph Language)  --- */

#include <stdio.h>
#include <string.h>
#include "str.h"
#include "notify.h"
#include "ginger.tab.h"

int     line = 1;

/* ---  regular definitions  --- */
#define COMMENT 1

#define COMMENT2 2

#line 1058 "lex.yy.c"

/* Macros after this point can all be overridden by user definitions in
 * section 1.
 */

#if YY_STACK_USED
static int yy_start_stack_ptr = 0;
static int yy_start_stack_depth = 0;
static int *yy_start_stack = 0;
#ifndef YY_NO_PUSH_STATE
static void yy_push_state YY_PROTO(( int new_state ));
#endif
#ifndef YY_NO_POP_STATE
static void yy_pop_state YY_PROTO(( void ));
#endif
#ifndef YY_NO_TOP_STATE
static int yy_top_state YY_PROTO(( void ));
#endif

#else
#define YY_NO_PUSH_STATE 1
#define YY_NO_POP_STATE 1
#define YY_NO_TOP_STATE 1
#endif

#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* Just try to get by without declaring the routines.  This will fail
 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
 * or sizeof(void*) != sizeof(int).
 */
#endif
#endif

/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif

/* Copy whatever the last rule matched to the standard output. */

#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
 * we now use fwrite().
 */
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif

/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL,
 * is returned in "result".
 */
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
	if ( yy_current_buffer->yy_is_interactive ) \
		{ \
		int c = '*', n; \
		for ( n = 0; n < max_size && \
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
			buf[n] = (char) c; \
		if ( c == '\n' ) \
			buf[n++] = (char) c; \
		if ( c == EOF && ferror( yyin ) ) \
			YY_FATAL_ERROR( "input in flex scanner failed" ); \
		result = n; \
		} \
	else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
		  && ferror( yyin ) ) \
		YY_FATAL_ERROR( "input in flex scanner failed" );
#endif

/* No semi-colon after return; correct usage is to write "yyterminate();" -
 * we don't want an extra ';' after the "return" because that will cause
 * some compilers to complain about unreachable statements.
 */
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif

/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif

/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif

/* Default declaration of generated scanner - a define so the user can
 * easily add parameters.
 */
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif

/* Code executed at the beginning of each rule, after yytext and yyleng
 * have been set up.
 */
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif

/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif

#define YY_RULE_SETUP \
	YY_USER_ACTION

YY_DECL
	{
	register yy_state_type yy_current_state;
	register char *yy_cp, *yy_bp;
	register int yy_act;

#line 45 "ginger.l"

#line 1183 "lex.yy.c"

	if ( yy_init )
		{
		yy_init = 0;

#ifdef YY_USER_INIT
		YY_USER_INIT;
#endif

		if ( ! yy_start )
			yy_start = 1;	/* first start state */

		if ( ! yyin )
			yyin = stdin;

		if ( ! yyout )
			yyout = stdout;

		if ( ! yy_current_buffer )
			yy_current_buffer =
				yy_create_buffer( yyin, YY_BUF_SIZE );

		yy_load_buffer_state();
		}

	while ( 1 )		/* loops until end-of-file is reached */
		{
		yy_cp = yy_c_buf_p;

		/* Support of yytext. */
		*yy_cp = yy_hold_char;

		/* yy_bp points to the position in yy_ch_buf of the start of
		 * the current run.
		 */
		yy_bp = yy_cp;

		yy_current_state = yy_start;
yy_match:
		do
			{
			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
			if ( yy_accept[yy_current_state] )
				{
				yy_last_accepting_state = yy_current_state;
				yy_last_accepting_cpos = yy_cp;
				}
			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
				{
				yy_current_state = (int) yy_def[yy_current_state];
				if ( yy_current_state >= 514 )
					yy_c = yy_meta[(unsigned int) yy_c];
				}
			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
			++yy_cp;
			}
		while ( yy_base[yy_current_state] != 2078 );

yy_find_action:
		yy_act = yy_accept[yy_current_state];
		if ( yy_act == 0 )
			{ /* have to back up */
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			yy_act = yy_accept[yy_current_state];
			}

		YY_DO_BEFORE_ACTION;


do_action:	/* This label is used only to access EOF actions. */


		switch ( yy_act )
	{ /* beginning of action switch */
			case 0: /* must back up */
			/* undo the effects of YY_DO_BEFORE_ACTION */
			*yy_cp = yy_hold_char;
			yy_cp = yy_last_accepting_cpos;
			yy_current_state = yy_last_accepting_state;
			goto yy_find_action;

case 1:
YY_RULE_SETUP
#line 46 "ginger.l"
{ BEGIN COMMENT;	}
	YY_BREAK
case 2:
YY_RULE_SETUP
#line 47 "ginger.l"
{ BEGIN 0;	}
	YY_BREAK
case 3:
YY_RULE_SETUP
#line 48 "ginger.l"
{ /* no action */;	}
	YY_BREAK
case 4:
YY_RULE_SETUP
#line 49 "ginger.l"
{ line++;		}
	YY_BREAK
case 5:
YY_RULE_SETUP
#line 50 "ginger.l"
{ BEGIN COMMENT2;	}
	YY_BREAK
case 6:
YY_RULE_SETUP
#line 51 "ginger.l"
{ /* no action */;	}
	YY_BREAK
case 7:
YY_RULE_SETUP
#line 52 "ginger.l"
{ BEGIN 0; line++;	}
	YY_BREAK
case 8:
YY_RULE_SETUP
#line 53 "ginger.l"
{ return(NODE);		}
	YY_BREAK
case 9:
YY_RULE_SETUP
#line 54 "ginger.l"
{ return(EDGE);		}
	YY_BREAK
case 10:
YY_RULE_SETUP
#line 55 "ginger.l"
{ return(TEMPLATE);	}
	YY_BREAK
case 11:
YY_RULE_SETUP
#line 56 "ginger.l"
{ return(LABEL);	}
	YY_BREAK
case 12:
YY_RULE_SETUP
#line 57 "ginger.l"
{ return(SHAPE);	}
	YY_BREAK
case 13:
YY_RULE_SETUP
#line 58 "ginger.l"
{ return(CONTENTS);	}
	YY_BREAK
case 14:
YY_RULE_SETUP
#line 59 "ginger.l"
{ return(EDITOR);	}
	YY_BREAK
case 15:
YY_RULE_SETUP
#line 60 "ginger.l"
{ return(COLOR);	}
	YY_BREAK
case 16:
YY_RULE_SETUP
#line 61 "ginger.l"
{ return(COLOR);	}
	YY_BREAK
case 17:
YY_RULE_SETUP
#line 62 "ginger.l"
{ return(COLOR);	}
	YY_BREAK
case 18:
YY_RULE_SETUP
#line 63 "ginger.l"
{ return(BACKGROUND);	}
	YY_BREAK
case 19:
YY_RULE_SETUP
#line 64 "ginger.l"
{ return(BACKGROUND);	}
	YY_BREAK
case 20:
YY_RULE_SETUP
#line 65 "ginger.l"
{ return(X);		}
	YY_BREAK
case 21:
YY_RULE_SETUP
#line 66 "ginger.l"
{ return(Y);		}
	YY_BREAK
case 22:
YY_RULE_SETUP
#line 67 "ginger.l"
{ return(TO);		}
	YY_BREAK
case 23:
YY_RULE_SETUP
#line 68 "ginger.l"
{ return(FROM);		}
	YY_BREAK
case 24:
YY_RULE_SETUP
#line 69 "ginger.l"
{ return(WIDTH);	}
	YY_BREAK
case 25:
YY_RULE_SETUP
#line 70 "ginger.l"
{ return(HEIGHT);	}
	YY_BREAK
case 26:
YY_RULE_SETUP
#line 71 "ginger.l"
{ return(DIRECTION);	}
	YY_BREAK
case 27:
YY_RULE_SETUP
#line 72 "ginger.l"
{ return(NORMAL);	}
	YY_BREAK
case 28:
YY_RULE_SETUP
#line 73 "ginger.l"
{ return(INVERSE);	}
	YY_BREAK
case 29:
YY_RULE_SETUP
#line 74 "ginger.l"
{ return(BOTH);		}
	YY_BREAK
case 30:
YY_RULE_SETUP
#line 75 "ginger.l"
{ return(NONE);		}
	YY_BREAK
case 31:
YY_RULE_SETUP
#line 76 "ginger.l"
{ return(RECTANGLE);	}
	YY_BREAK
case 32:
YY_RULE_SETUP
#line 77 "ginger.l"
{ return(ELLIPSE);	}
	YY_BREAK
case 33:
YY_RULE_SETUP
#line 78 "ginger.l"
{ return(RHOMBE);	}
	YY_BREAK
case 34:
YY_RULE_SETUP
#line 79 "ginger.l"
{ return(RHOMBE);	}
	YY_BREAK
case 35:
YY_RULE_SETUP
#line 80 "ginger.l"
{ return(RHOMBE);	}
	YY_BREAK
case 36:
YY_RULE_SETUP
#line 81 "ginger.l"
{ return(BITMAP);	}
	YY_BREAK
case 37:
YY_RULE_SETUP
#line 82 "ginger.l"
{ return(PIXMAP);	}
	YY_BREAK
case 38:
YY_RULE_SETUP
#line 83 "ginger.l"
{ return('(');		}
	YY_BREAK
case 39:
YY_RULE_SETUP
#line 84 "ginger.l"
{ return(')');		}
	YY_BREAK
case 40:
YY_RULE_SETUP
#line 85 "ginger.l"
{ /* No Action */	}
	YY_BREAK
case 41:
YY_RULE_SETUP
#line 86 "ginger.l"
{ line++;		}
	YY_BREAK
case 42:
YY_RULE_SETUP
#line 87 "ginger.l"
{ return(ID);		}
	YY_BREAK
case 43:
YY_RULE_SETUP
#line 88 "ginger.l"
{ return(STRING);	}
	YY_BREAK
case 44:
YY_RULE_SETUP
#line 89 "ginger.l"
{ return(INT);		}
	YY_BREAK
case 45:
YY_RULE_SETUP
#line 91 "ginger.l"
ECHO;
	YY_BREAK
#line 1491 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(COMMENT):
case YY_STATE_EOF(COMMENT2):
	yyterminate();

	case YY_END_OF_BUFFER:
		{
		/* Amount of text matched not including the EOB char. */
		int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;

		/* Undo the effects of YY_DO_BEFORE_ACTION. */
		*yy_cp = yy_hold_char;

		if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
			{
			/* We're scanning a new file or input source.  It's
			 * possible that this happened because the user
			 * just pointed yyin at a new source and called
			 * yylex().  If so, then we have to assure
			 * consistency between yy_current_buffer and our
			 * globals.  Here is the right place to do so, because
			 * this is the first action (other than possibly a
			 * back-up) that will match for the new input source.
			 */
			yy_n_chars = yy_current_buffer->yy_n_chars;
			yy_current_buffer->yy_input_file = yyin;
			yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
			}

		/* Note that here we test for yy_c_buf_p "<=" to the position
		 * of the first EOB in the buffer, since yy_c_buf_p will
		 * already have been incremented past the NUL character
		 * (since all states make transitions on EOB to the
		 * end-of-buffer state).  Contrast this with the test
		 * in input().
		 */
		if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			{ /* This was really a NUL. */
			yy_state_type yy_next_state;

			yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;

			yy_current_state = yy_get_previous_state();

			/* Okay, we're now positioned to make the NUL
			 * transition.  We couldn't have
			 * yy_get_previous_state() go ahead and do it
			 * for us because it doesn't know how to deal
			 * with the possibility of jamming (and we don't
			 * want to build jamming into it because then it
			 * will run more slowly).
			 */

			yy_next_state = yy_try_NUL_trans( yy_current_state );

			yy_bp = yytext_ptr + YY_MORE_ADJ;

			if ( yy_next_state )
				{
				/* Consume the NUL. */
				yy_cp = ++yy_c_buf_p;
				yy_current_state = yy_next_state;
				goto yy_match;
				}

			else
				{
				yy_cp = yy_c_buf_p;
				goto yy_find_action;
				}
			}

		else switch ( yy_get_next_buffer() )
			{
			case EOB_ACT_END_OF_FILE:
				{
				yy_did_buffer_switch_on_eof = 0;

				if ( yywrap() )
					{
					/* Note: because we've taken care in
					 * yy_get_next_buffer() to have set up
					 * yytext, we can now set up
					 * yy_c_buf_p so that if some total
					 * hoser (like flex itself) wants to
					 * call the scanner after we return the
					 * YY_NULL, it'll still work - another
					 * YY_NULL will get returned.
					 */
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;

					yy_act = YY_STATE_EOF(YY_START);
					goto do_action;
					}

				else
					{
					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
					}
				break;
				}

			case EOB_ACT_CONTINUE_SCAN:
				yy_c_buf_p =
					yytext_ptr + yy_amount_of_matched_text;

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_match;

			case EOB_ACT_LAST_MATCH:
				yy_c_buf_p =
				&yy_current_buffer->yy_ch_buf[yy_n_chars];

				yy_current_state = yy_get_previous_state();

				yy_cp = yy_c_buf_p;
				yy_bp = yytext_ptr + YY_MORE_ADJ;
				goto yy_find_action;
			}
		break;
		}

	default:
		YY_FATAL_ERROR(
			"fatal flex scanner internal error--no action found" );
	} /* end of action switch */
		} /* end of scanning one token */
	} /* end of yylex */


/* yy_get_next_buffer - try to read in a new buffer
 *
 * Returns a code representing an action:
 *	EOB_ACT_LAST_MATCH -
 *	EOB_ACT_CONTINUE_SCAN - continue scanning from current position
 *	EOB_ACT_END_OF_FILE - end of file
 */

static int yy_get_next_buffer()
	{
	register char *dest = yy_current_buffer->yy_ch_buf;
	register char *source = yytext_ptr;
	register int number_to_move, i;
	int ret_val;

	if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
		YY_FATAL_ERROR(
		"fatal flex scanner internal error--end of buffer missed" );

	if ( yy_current_buffer->yy_fill_buffer == 0 )
		{ /* Don't try to fill the buffer, so this is an EOF. */
		if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
			{
			/* We matched a singled characater, the EOB, so
			 * treat this as a final EOF.
			 */
			return EOB_ACT_END_OF_FILE;
			}

		else
			{
			/* We matched some text prior to the EOB, first
			 * process it.
			 */
			return EOB_ACT_LAST_MATCH;
			}
		}

	/* Try to read more data. */

	/* First move last chars to start of buffer. */
	number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;

	for ( i = 0; i < number_to_move; ++i )
		*(dest++) = *(source++);

	if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
		/* don't do the read, it's not guaranteed to return an EOF,
		 * just force an EOF
		 */
		yy_n_chars = 0;

	else
		{
		int num_to_read =
			yy_current_buffer->yy_buf_size - number_to_move - 1;

		while ( num_to_read <= 0 )
			{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
			YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else

			/* just a shorter name for the current buffer */
			YY_BUFFER_STATE b = yy_current_buffer;

			int yy_c_buf_p_offset =
				(int) (yy_c_buf_p - b->yy_ch_buf);

			if ( b->yy_is_our_buffer )
				{
				int new_size = b->yy_buf_size * 2;

				if ( new_size <= 0 )
					b->yy_buf_size += b->yy_buf_size / 8;
				else
					b->yy_buf_size *= 2;

				b->yy_ch_buf = (char *)
					/* Include room in for 2 EOB chars. */
					yy_flex_realloc( (void *) b->yy_ch_buf,
							 b->yy_buf_size + 2 );
				}
			else
				/* Can't grow it, we don't own it. */
				b->yy_ch_buf = 0;

			if ( ! b->yy_ch_buf )
				YY_FATAL_ERROR(
				"fatal error - scanner input buffer overflow" );

			yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];

			num_to_read = yy_current_buffer->yy_buf_size -
						number_to_move - 1;
#endif
			}

		if ( num_to_read > YY_READ_BUF_SIZE )
			num_to_read = YY_READ_BUF_SIZE;

		/* Read in more data. */
		YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
			yy_n_chars, num_to_read );
		}

	if ( yy_n_chars == 0 )
		{
		if ( number_to_move == YY_MORE_ADJ )
			{
			ret_val = EOB_ACT_END_OF_FILE;
			yyrestart( yyin );
			}

		else
			{
			ret_val = EOB_ACT_LAST_MATCH;
			yy_current_buffer->yy_buffer_status =
				YY_BUFFER_EOF_PENDING;
			}
		}

	else
		ret_val = EOB_ACT_CONTINUE_SCAN;

	yy_n_chars += number_to_move;
	yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
	yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;

	yytext_ptr = &yy_current_buffer->yy_ch_buf[0];

	return ret_val;
	}


/* yy_get_previous_state - get the state just before the EOB char was reached */

static yy_state_type yy_get_previous_state()
	{
	register yy_state_type yy_current_state;
	register char *yy_cp;

	yy_current_state = yy_start;

	for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
		{
		register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
		if ( yy_accept[yy_current_state] )
			{
			yy_last_accepting_state = yy_current_state;
			yy_last_accepting_cpos = yy_cp;
			}
		while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
			{
			yy_current_state = (int) yy_def[yy_current_state];
			if ( yy_current_state >= 514 )
				yy_c = yy_meta[(unsigned int) yy_c];
			}
		yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
		}

	return yy_current_state;
	}


/* yy_try_NUL_trans - try to make a transition on the NUL character
 *
 * synopsis
 *	next_state = yy_try_NUL_trans( current_state );
 */

#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
	{
	register int yy_is_jam;
	register char *yy_cp = yy_c_buf_p;

	register YY_CHAR yy_c = 1;
	if ( yy_accept[yy_current_state] )
		{
		yy_last_accepting_state = yy_current_state;
		yy_last_accepting_cpos = yy_cp;
		}
	while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
		{
		yy_current_state = (int) yy_def[yy_current_state];
		if ( yy_current_state >= 514 )
			yy_c = yy_meta[(unsigned int) yy_c];
		}
	yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
	yy_is_jam = (yy_current_state == 513);

	return yy_is_jam ? 0 : yy_current_state;
	}


#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
	{
	register char *yy_cp = yy_c_buf_p;

	/* undo effects of setting up yytext */
	*yy_cp = yy_hold_char;

	if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
		{ /* need to shift things up to make room */
		/* +2 for EOB chars. */
		register int number_to_move = yy_n_chars + 2;
		register char *dest = &yy_current_buffer->yy_ch_buf[
					yy_current_buffer->yy_buf_size + 2];
		register char *source =
				&yy_current_buffer->yy_ch_buf[number_to_move];

		while ( source > yy_current_buffer->yy_ch_buf )
			*--dest = *--source;

		yy_cp += (int) (dest - source);
		yy_bp += (int) (dest - source);
		yy_n_chars = yy_current_buffer->yy_buf_size;

		if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
			YY_FATAL_ERROR( "flex scanner push-back overflow" );
		}

	*--yy_cp = (char) c;


	yytext_ptr = yy_bp;
	yy_hold_char = *yy_cp;
	yy_c_buf_p = yy_cp;
	}


#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
	{
	int c;

	*yy_c_buf_p = yy_hold_char;

	if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
		{
		/* yy_c_buf_p now points to the character we want to return.
		 * If this occurs *before* the EOB characters, then it's a
		 * valid NUL; if not, then we've hit the end of the buffer.
		 */
		if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
			/* This was really a NUL. */
			*yy_c_buf_p = '\0';

		else
			{ /* need more input */
			yytext_ptr = yy_c_buf_p;
			++yy_c_buf_p;

			switch ( yy_get_next_buffer() )
				{
				case EOB_ACT_END_OF_FILE:
					{
					if ( yywrap() )
						{
						yy_c_buf_p =
						yytext_ptr + YY_MORE_ADJ;
						return EOF;
						}

					if ( ! yy_did_buffer_switch_on_eof )
						YY_NEW_FILE;
#ifdef __cplusplus
					return yyinput();
#else
					return input();
#endif
					}

				case EOB_ACT_CONTINUE_SCAN:
					yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
					break;

				case EOB_ACT_LAST_MATCH:
#ifdef __cplusplus
					YY_FATAL_ERROR(
					"unexpected last match in yyinput()" );
#else
					YY_FATAL_ERROR(
					"unexpected last match in input()" );
#endif
				}
			}
		}

	c = *(unsigned char *) yy_c_buf_p;	/* cast for 8-bit char's */
	*yy_c_buf_p = '\0';	/* preserve yytext */
	yy_hold_char = *++yy_c_buf_p;


	return c;
	}


#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
	{
	if ( ! yy_current_buffer )
		yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );

	yy_init_buffer( yy_current_buffer, input_file );
	yy_load_buffer_state();
	}


#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
	{
	if ( yy_current_buffer == new_buffer )
		return;

	if ( yy_current_buffer )
		{
		/* Flush out information for old buffer. */
		*yy_c_buf_p = yy_hold_char;
		yy_current_buffer->yy_buf_pos = yy_c_buf_p;
		yy_current_buffer->yy_n_chars = yy_n_chars;
		}

	yy_current_buffer = new_buffer;
	yy_load_buffer_state();

	/* We don't actually know whether we did this switch during
	 * EOF (yywrap()) processing, but the only time this flag
	 * is looked at is after yywrap() is called, so it's safe
	 * to go ahead and always set it.
	 */
	yy_did_buffer_switch_on_eof = 1;
	}


#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
	{
	yy_n_chars = yy_current_buffer->yy_n_chars;
	yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
	yyin = yy_current_buffer->yy_input_file;
	yy_hold_char = *yy_c_buf_p;
	}


#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
	{
	YY_BUFFER_STATE b;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_buf_size = size;

	/* yy_ch_buf has to be 2 characters longer than the size given because
	 * we need to put in 2 end-of-buffer characters.
	 */
	b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

	b->yy_is_our_buffer = 1;

	yy_init_buffer( b, file );

	return b;
	}


#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
	{
	if ( b == yy_current_buffer )
		yy_current_buffer = (YY_BUFFER_STATE) 0;

	if ( b->yy_is_our_buffer )
		yy_flex_free( (void *) b->yy_ch_buf );

	yy_flex_free( (void *) b );
	}


#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif

#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif


	{
	yy_flush_buffer( b );

	b->yy_input_file = file;
	b->yy_fill_buffer = 1;

#if YY_ALWAYS_INTERACTIVE
	b->yy_is_interactive = 1;
#else
#if YY_NEVER_INTERACTIVE
	b->yy_is_interactive = 0;
#else
	b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
#endif
#endif
	}


#ifdef YY_USE_PROTOS
void yy_flush_buffer( YY_BUFFER_STATE b )
#else
void yy_flush_buffer( b )
YY_BUFFER_STATE b;
#endif

	{
	b->yy_n_chars = 0;

	/* We always need two end-of-buffer characters.  The first causes
	 * a transition to the end-of-buffer state.  The second causes
	 * a jam in that state.
	 */
	b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
	b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;

	b->yy_buf_pos = &b->yy_ch_buf[0];

	b->yy_at_bol = 1;
	b->yy_buffer_status = YY_BUFFER_NEW;

	if ( b == yy_current_buffer )
		yy_load_buffer_state();
	}


#ifndef YY_NO_SCAN_BUFFER
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
#else
YY_BUFFER_STATE yy_scan_buffer( base, size )
char *base;
yy_size_t size;
#endif
	{
	YY_BUFFER_STATE b;

	if ( size < 2 ||
	     base[size-2] != YY_END_OF_BUFFER_CHAR ||
	     base[size-1] != YY_END_OF_BUFFER_CHAR )
		/* They forgot to leave room for the EOB's. */
		return 0;

	b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );

	b->yy_buf_size = size - 2;	/* "- 2" to take care of EOB's */
	b->yy_buf_pos = b->yy_ch_buf = base;
	b->yy_is_our_buffer = 0;
	b->yy_input_file = 0;
	b->yy_n_chars = b->yy_buf_size;
	b->yy_is_interactive = 0;
	b->yy_at_bol = 1;
	b->yy_fill_buffer = 0;
	b->yy_buffer_status = YY_BUFFER_NEW;

	yy_switch_to_buffer( b );

	return b;
	}
#endif


#ifndef YY_NO_SCAN_STRING
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_string( const char *str )
#else
YY_BUFFER_STATE yy_scan_string( str )
const char *str;
#endif
	{
	int len;
	for ( len = 0; str[len]; ++len )
		;

	return yy_scan_bytes( str, len );
	}
#endif


#ifndef YY_NO_SCAN_BYTES
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_scan_bytes( const char *bytes, int len )
#else
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
const char *bytes;
int len;
#endif
	{
	YY_BUFFER_STATE b;
	char *buf;
	yy_size_t n;
	int i;

	/* Get memory for full buffer, including space for trailing EOB's. */
	n = len + 2;
	buf = (char *) yy_flex_alloc( n );
	if ( ! buf )
		YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );

	for ( i = 0; i < len; ++i )
		buf[i] = bytes[i];

	buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;

	b = yy_scan_buffer( buf, n );
	if ( ! b )
		YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );

	/* It's okay to grow etc. this buffer, and we should throw it
	 * away when we're done.
	 */
	b->yy_is_our_buffer = 1;

	return b;
	}
#endif


#ifndef YY_NO_PUSH_STATE
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
	{
	if ( yy_start_stack_ptr >= yy_start_stack_depth )
		{
		yy_size_t new_size;

		yy_start_stack_depth += YY_START_STACK_INCR;
		new_size = yy_start_stack_depth * sizeof( int );

		if ( ! yy_start_stack )
			yy_start_stack = (int *) yy_flex_alloc( new_size );

		else
			yy_start_stack = (int *) yy_flex_realloc(
					(void *) yy_start_stack, new_size );

		if ( ! yy_start_stack )
			YY_FATAL_ERROR(
			"out of memory expanding start-condition stack" );
		}

	yy_start_stack[yy_start_stack_ptr++] = YY_START;

	BEGIN(new_state);
	}
#endif


#ifndef YY_NO_POP_STATE
static void yy_pop_state()
	{
	if ( --yy_start_stack_ptr < 0 )
		YY_FATAL_ERROR( "start-condition stack underflow" );

	BEGIN(yy_start_stack[yy_start_stack_ptr]);
	}
#endif


#ifndef YY_NO_TOP_STATE
static int yy_top_state()
	{
	return yy_start_stack[yy_start_stack_ptr - 1];
	}
#endif

#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif

#ifdef YY_USE_PROTOS
static void yy_fatal_error( const char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
	{
	(void) fprintf( stderr, "%s\n", msg );
	exit( YY_EXIT_FAILURE );
	}



/* Redefine yyless() so it works in section 3 code. */

#undef yyless
#define yyless(n) \
	do \
		{ \
		/* Undo effects of setting up yytext. */ \
		yytext[yyleng] = yy_hold_char; \
		yy_c_buf_p = yytext + n - YY_MORE_ADJ; \
		yy_hold_char = *yy_c_buf_p; \
		*yy_c_buf_p = '\0'; \
		yyleng = n; \
		} \
	while ( 0 )


/* Internal utility routines. */

#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, const char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
const char *s2;
int n;
#endif
	{
	register int i;
	for ( i = 0; i < n; ++i )
		s1[i] = s2[i];
	}
#endif


#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( yy_size_t size )
#else
static void *yy_flex_alloc( size )
yy_size_t size;
#endif
	{
	return (void *) malloc( size );
	}

#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, yy_size_t size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
yy_size_t size;
#endif
	{
	return (void *) realloc( ptr, size );
	}

#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
	{
	free( ptr );
	}

#if YY_MAIN
int main()
	{
	yylex();
	return 0;
	}
#endif
#line 91 "ginger.l"

/* ---  Supporting C routines  --- */

void yyerror(char* s) {
	char buf[256];
	sprintf(buf, "Error reading input, line %d: %s, <%s>\n",line,s,yytext);
	notifyAndOfferHelp(buf, "GGL grammar"); 
}

void lexerRestart(FILE *f) {
	yyrestart(f);	
}
